package com.example.apione.model;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.apione.dao.userLogDao;
import com.example.apione.entity.userLog;

import java.util.List;

/**
 * @author 尘落
 * @date 2023/2/26
 */
public class userLogModel {
    public static List<userLog> getuserlog(userLogDao userLogDao){
        QueryWrapper<userLog> queryWrapper=new QueryWrapper<>();
        queryWrapper.orderByDesc("create_time");
        List<userLog> userLogs = userLogDao.selectList(queryWrapper);
        return userLogs;
    }
}
